from os.path import dirname, join, abspath
from gmultiserver.utils import config
__dir__ = dirname(abspath(__file__))

DEBUG = True
#TEMPLATE_DEBUG = DEBUG

ADMINS = ()
MANAGERS = ADMINS
DATABASES = {
	'default': {
		'ENGINE': 'django.db.backends.sqlite3',
		'NAME': config.main.work_dir + '/gevent-webchat.sqlite'
	}
}
TIME_ZONE = 'Europe/Warsaw'
LANGUAGE_CODE = 'pl'
FILE_CHARSET = 'utf-8'
SITE_ID = 1
USE_I18N = False
MEDIA_ROOT = join(__dir__, 'static')
MEDIA_URL = '/static/'
TEMPLATE_LOADERS = (
	'django.template.loaders.app_directories.Loader',
)

MIDDLEWARE_CLASSES = (
	'django.middleware.common.CommonMiddleware',
	'django.contrib.sessions.middleware.SessionMiddleware',
)

ROOT_URLCONF = 'gmultiserver.dj.urls'
TEMPLATE_DIRS = (
	join(__dir__, 'dj/templates')
)

INSTALLED_APPS = (
	'django.contrib.contenttypes',
	'django.contrib.sessions',
	'django.contrib.sites',
	'gmultiserver.dj',
)
